Textarea Alert



Use JavaScript to alert your user with the contents of a textarea! This also serves little purpose in the real world, but nonetheless is a great example of JavaScript. Type something in the box and hit 'Alert Me!' 
 
------------------------


<!-- TWO STEPS TO INSTALL TEXTAREA ALERT:
  
   1.  Put the last code into the HEAD of your HTML document
   2.  Add the final coding into the BODY of your HTML document  -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
		  
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function seeTextArea (form) {
alert (form.myarea.value);
}
// End -->
</SCRIPT>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
		  
<BODY>

<FORM NAME="myform">
<INPUT TYPE="button" NAME="button3" Value="Alert Me!"
onClick="seeTextArea(this.form)">
<TEXTAREA NAME="myarea" COLS="40" ROWS="5">
</TEXTAREA>
</FORM>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  0.83 KB  -->
